<com:TPanel id="PortletEditMode" Style="border-bottom: 1px solid black; margin: 0px 0px 0px 0px; text-align: right;">
	<com:TImageButton OnClick="MoveButtonClicked" ImageURL="<%=$this->Page->getTheme()->getBaseUrl()%>/images/edit/page_next.gif" Text="<%[Move to another area%>" />
	<com:TImageButton OnClick="UpButtonClicked" ImageURL="<%=$this->Page->getTheme()->getBaseUrl()%>/images/edit/page_up.gif" Text="<%[Move portlet up]%>" />
	<com:TImageButton OnClick="DownButtonClicked" ImageURL="<%=$this->Page->getTheme()->getBaseUrl()%>/images/edit/page_down.gif" Text="<%[Move portlet down%>" />
	<com:TImageButton OnClick="PropertyButtonClicked" ImageURL="<%=$this->Page->getTheme()->getBaseUrl()%>/images/edit/application_form.png" Text="<%[Properties]%>" />
	<com:TImageButton OnClick="DeleteButtonClicked" ImageURL="<%=$this->Page->getTheme()->getBaseUrl()%>/images/edit/application_delete.png" Text="<%[Remove portlet]%>" Attributes.onclick="if(!confirm('<%= Prado::localize('Are you sure?') %>')) return false;" />
</com:TPanel>
<com:TPanel Id="pnlPollProperties" GroupingText="<%[Poll properties]%>" DefaultButton="btnSavePoll">
	<table width="100%">
		<tr>
			<td><%[Question]%><br /><com:TTextBox Id="tbQuestion" Columns="25" /></td>
		</tr>
		<tr>
			<td><%[Bar color]%><br /><com:TColorPicker Id="tbColor" Mode="Basic" /></td>
		</tr>
		<tr>
			<td><%[Expire]%><br /><com:TDatePicker Id="Expire" <%= (time() + (60 * 60 *24 *30)) %> Culture=<%#$this->Application->Culture %> InputMode="DropDownList"/></td>
		</tr>
		<tr>
			<td><com:TCheckBox Id="Active" Text="<%[Is active]%>"/></td>
		</tr>
		<tr>
			<td><com:TLinkButton Id="btnSavePoll" Text="<%[Save]%>" CssClass="link-button" OnClick="SavePollProperties" /></td>
		</tr>
	</table>
</com:TPanel>
<com:TPanel Id="pnlPollChoices" GroupingText="<%[Poll choices]%>">
	<com:TDataList
		Id="dlPollChoices"
		DataKeyField="id"
		OnDeleteCommand="deletePollChoice"
		onItemCommand="itemCommand"
		HeaderStyle.CssClass="grid-header"
		HeaderStyle.Width="100%"
		ItemStyle.CssClass="grid-row1"
		ItemStyle.Width="100%"
		AlternatingItemStyle.CssClass="grid-row2"
		EditItemStyle.CssClass="grid-row-edit"
		SelectedItemStyle.CssClass="grid-row-selected"
		style="width: 100%;">
		<prop:HeaderTemplate>
			<table border="0" width="100%">
				<tr>
					<td><%[Choice]%></td>
					<td><%[Order]%></td>
					<td><%[Cmd]%></td>
				</tr>
			</table>
		</prop:HeaderTemplate>
		<prop:ItemTemplate>
			<table border="0" width="100%">
				<tr>
					<td align="left" width="50%"><%# $this->DataItem['answer'] %></td>
					<td><com:TLinkButton Text="<%[Up]%>" CommandName="MoveUpPC" CommandParameter=<%#$this->DataItem['id'] %> />&nbsp;<com:TLinkButton Text="<%[Dwn]%>" CommandName="MoveDownPC" CommandParameter=<%#$this->DataItem['id'] %>/></td>
					<td style="text-align: right;" width="15%">
						<com:TLinkButton Text="<%[Delete]%>" CommandName="delete" Attributes.onclick="if(!confirm('<%= Prado::localize('Are you sure?') %>')) return false;" />
					</td>
				</tr>
			</table>
		</prop:ItemTemplate>
	</com:TDataList>
</com:TPanel>
<com:TPanel Id="pnlAddPollChoices" GroupingText="<%[Add choice]%>" DefaultButton="btnAddChoice">
	<table>
		<tr>
			<td><%[Choice]%><br>
				<com:TTextBox Id="Choice" Columns="20" />
				<com:TRequiredFieldValidator Id="valChoice" ControlToValidate="Choice" ValidationGroup="addchoice" Text="<%[*required]%>" Display="Dynamic"/>
			</td>
		</tr>
		<tr>
			<td><com:TLinkButton Id="btnAddChoice" Text="<%[Add choice]%>" CssClass="link-button" OnClick="AddChoice" ValidationGroup="addchoice" /></td>
		</tr>
	</table>
</com:TPanel>
